package com.hwc.demo.springcloud.service.feign;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import com.hwc.demo.springcloud.entity.Dept;

@FeignClient("SPRINGCLOUD-PROVIDER-DEPT")
public interface DeptClientService {
	@PostMapping("/dept")
	public int add(Dept reqDo);

	@GetMapping("/dept/{id}")
	public Dept get(@PathVariable("id") Long id);

	@GetMapping("/dept")
	public List<Dept> list();
}
